import request from '@/http/request'

// 获取qa列表
export const $getQaList = (params:any) => {
  return request.request({
    url: '/api/sysQa',
    method: 'GET',
    params
  })
}
// 新增qa
export const $addQa = (data:any) => {
  return request.request({
    url: '/api/sysQa/add',
    method: 'POST',
    data
  })
}
// 修改qa
export const $editQa = (data:any) => {
  return request.request({
    url: '/api/sysQa/update',
    method: 'PUT',
    data
  })
}

// 类别列表
export const $getQaType = (params:any) => {
  return request.request({
    url: '/api/sysQaType',
    method: 'GET',
    params
  })
}

// 新增类别
export const $addQaType = (data:any) => {
  return request.request({
    url: '/api/sysQaType/add',
    method: 'POST',
    data
  })
}

// 修改类别
export const $editQaType = (data:any) => {
  return request.request({
    url: '/api/sysQaType/update',
    method: 'PUT',
    data
  })
}

// 类别删除
export const $delQaType = (sysQaTypeId) => {
  return request.request({
    url: '/api/sysQaType/delete',
    method: 'DELETE',
    data: { sysQaTypeId }
  })
}